package com.teradyne.merlin2.ui.client.activities;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.teradyne.merlin2.ui.client.views.OrderEntryView;

public class OrderEntryActivity extends AbstractActivity implements OrderEntryView.Presenter, ActivityCustom {

	private final OrderEntryView view;
	private Place place;

	public OrderEntryActivity(OrderEntryView view) {
		this.view = view;
	}

	@Override
	public void start(final AcceptsOneWidget container, final EventBus eventBus) {
		container.setWidget(view.asWidget());
		view.setPresenter(OrderEntryActivity.this);
		events(eventBus);
	}
	

	private void events(EventBus eventBus) {
		
	}

	@Override
	public void setPlace(Place place) {
		this.place = place;
	}

	@Override
	public Place getPlace() {
		return place;
	}

}